@import '../../../index.scss';

page {
  background-color: #f8f8f8;
}

.container {
  .navBT {
    display: grid;
    padding: 20rpx;
    grid-template-columns: 1fr 1fr;
    gap: 20rpx;
    background-color: #fff;

    .item {
      border: 1px solid #eee;
      padding: 20rpx;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      border-radius: 20rpx;
      box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(0, 0, 0, 0.04);

      .type {
        font-size: 32rpx;
        font-weight: bold;
      }

      .desc {
        font-size: 26rpx;
        color: #787878;
        padding-top: 10rpx;
      }
    }
  }

  .tabber {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    background-color: #fff;

    .fixed {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 999;
      height: 100rpx;
      background-color: #fff;
      z-index: 999;
    }


    .scroll-view {
      box-sizing: border-box;
      width: 100vw;

      .topScol {
        // display: flex;
        white-space: nowrap;
        // background-color: red;
        // height: 100rpx;
        padding: 10rpx 0;
        padding-left: 10rpx;

        .tabber-list {
          padding: 0 20rpx;
          padding-bottom: 6rpx;
          color: #444;
          display: inline-block;
          text-align: center;
          white-space: nowrap;

          .cont {
            display: flex;
            align-items: center;
            flex-direction: column;

            .desc {
              font-size: 28rpx;
              color: #666;
            }

            .date {
              font-size: 24rpx;
              color: #666;
            }
          }

          // margin-right: 10rpx;
          .split {
            width: 100%;
            height: 4rpx;
            margin: 0 auto;
            border-radius: 100px;
            margin-top: 10rpx;
            opacity: .8;
          }

          &.active {
            font-weight: bold;

            .split {
              background-color: $primary-color;
            }

            .cont {
              .desc {
                color: $primary-color;
              }

              .date {
                color: $primary-color;

              }
            }
          }
        }
      }


    }
  }

  .box {
    padding: 20rpx;

    .item {
      padding: 24rpx;
      box-shadow: 2rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
      border-radius: 20rpx;
      display: flex;
      margin-bottom: 20rpx;
      background-color: #fff;

      .cover {
        width: 250rpx;
        height: 180rpx;
        border-radius: 10rpx;
        overflow: hidden;
        margin-right: 20rpx;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .right {
        flex: 1;
        display: flex;
        flex-direction: column;

        .title {
          font-size: 32rpx;
          font-weight: bold;
          color: #333;
          display: -webkit-box;
          /* 必须设置为 flexbox */
          -webkit-line-clamp: 1;
          /* 设置显示的行数 */
          -webkit-box-orient: vertical;
          /* 设置文本排列方向为竖直方向 */
          overflow: hidden;
          line-height: 1;
        }

        .desc {
          font-size: 26rpx;
          color: #787878;
          flex: 1;
          margin: 16rpx 0 10rpx 0;
          overflow: hidden;
          display: -webkit-box;
          /* 必须设置为 flexbox */
          -webkit-line-clamp: 2;
          /* 设置显示的行数 */
          -webkit-box-orient: vertical;
          /* 设置文本排列方向为竖直方向 */
          overflow: hidden;
        }

        .bonn {
          display: flex;
          align-items: center;
          padding-top: 4rpx;

          .avatar {
            width: 50rpx;
            height: 50rpx;
            border-radius: 100px;
            overflow: hidden;
            margin-right: 10rpx;

            image {

              width: 100%;
              height: 100%;
            }
          }

          .nikeName {
            font-size: 26rpx;
            color: #787878;
            width: 130rpx;
            // background-color: red;
            margin-right: auto;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          .number {
            font-size: 26rpx;
            color: #787878;
          }


          .status {
            font-size: 26rpx;
            color: #000;
            font-weight: bold;
            margin-left: 10rpx;

            &.await {
              color: #087f5b;
            }

            &.underway {
              color: #c92a2a;
            }

            &.finished {
              color: #999;
            }
          }
        }


      }
    }

    .noData {
      text-align: center;
      position: fixed;
      top: 35%;
      width: 100%;

      image {
        width: 27.5%;
        opacity: .6;
      }

      .tip {

        color: #888;
        font-size: 26rpx;
        margin-top: 20rpx;
      }
    }
  }
}